home *** CD-ROM | disk | FTP | other *** search
/ Final Fantasy the Spirits Within Cardz / Final Fantasy the Spirits Within CD Cardz - Disc 3: Dr. Sid.iso / pc / assets / sid-exit.dcr / 00031_target behaviour.ls < prev    next >
Encoding:
Text File  |  2001-07-22  |  3.8 KB  |  118 lines

  1. property my, counter
  2.  
  3. on beginSprite me
  4.   Initialize(me)
  5. end
  6.  
  7. on Initialize me
  8.   my = me.spriteNum
  9.   sprite(my).blend = 50
  10.   counter = 1
  11. end
  12.  
  13. on exitFrame me
  14.   update(me)
  15. end
  16.  
  17. on update me
  18.   if counter = 1 then
  19.     sprite(my).blend = 55
  20.     counter = counter + 1
  21.   else
  22.     if counter = 2 then
  23.       sprite(my).blend = 60
  24.       counter = counter + 1
  25.     else
  26.       if counter = 3 then
  27.         sprite(my).blend = 65
  28.         counter = counter + 1
  29.       else
  30.         if counter = 4 then
  31.           sprite(my).blend = 70
  32.           counter = counter + 1
  33.         else
  34.           if counter = 5 then
  35.             sprite(my).blend = 75
  36.             counter = counter + 1
  37.           else
  38.             if counter = 6 then
  39.               sprite(my).blend = 80
  40.               counter = counter + 1
  41.             else
  42.               if counter = 7 then
  43.                 sprite(my).blend = 85
  44.                 counter = counter + 1
  45.               else
  46.                 if counter = 8 then
  47.                   sprite(my).blend = 90
  48.                   counter = counter + 1
  49.                 else
  50.                   if counter = 9 then
  51.                     sprite(my).blend = 95
  52.                     counter = counter + 1
  53.                   else
  54.                     if counter = 10 then
  55.                       sprite(my).blend = 100
  56.                       counter = counter + 1
  57.                     else
  58.                       if counter = 11 then
  59.                         sprite(my).blend = 95
  60.                         counter = counter + 1
  61.                       else
  62.                         if counter = 12 then
  63.                           sprite(my).blend = 90
  64.                           counter = counter + 1
  65.                         else
  66.                           if counter = 13 then
  67.                             sprite(my).blend = 85
  68.                             counter = counter + 1
  69.                           else
  70.                             if counter = 14 then
  71.                               sprite(my).blend = 80
  72.                               counter = counter + 1
  73.                             else
  74.                               if counter = 15 then
  75.                                 sprite(my).blend = 75
  76.                                 counter = counter + 1
  77.                               else
  78.                                 if counter = 16 then
  79.                                   sprite(my).blend = 70
  80.                                   counter = counter + 1
  81.                                 else
  82.                                   if counter = 17 then
  83.                                     sprite(my).blend = 65
  84.                                     counter = counter + 1
  85.                                   else
  86.                                     if counter = 18 then
  87.                                       sprite(my).blend = 60
  88.                                       counter = counter + 1
  89.                                     else
  90.                                       if counter = 19 then
  91.                                         sprite(my).blend = 55
  92.                                         counter = counter + 1
  93.                                       else
  94.                                         if counter = 20 then
  95.                                           sprite(my).blend = 50
  96.                                           counter = 1
  97.                                         end if
  98.                                       end if
  99.                                     end if
  100.                                   end if
  101.                                 end if
  102.                               end if
  103.                             end if
  104.                           end if
  105.                         end if
  106.                       end if
  107.                     end if
  108.                   end if
  109.                 end if
  110.               end if
  111.             end if
  112.           end if
  113.         end if
  114.       end if
  115.     end if
  116.   end if
  117. end
  118.